﻿/*jslint bitwise: true, browser: true, eqeqeq: true, immed: true, newcap: true, nomen: true, onevar: true, plusplus: true, regexp: true, undef: true, white: true, indent: 4*/

(function (window) {
    if (document.addEventListener) {
        document.addEventListener('DOMContentLoaded', document.ready, false);
        if (document.readyState) {
            (function () {
                if ((/loaded|complete/).test(document.readyState)) {
                    return document.ready();
                }
                setTimeout(arguments.callee, 10);
            }());
        }
    }
    /*@cc_on document.write(decodeURI('%3Cscript defer src="//:" onreadystatechange="if(this.readyState===\'complete\'){document.ready();}"%3E%3C/script%3E')); @*/
    window.addEvent('load', document.ready);
}(this));